<?php
/**
 * @description
 *  文章详细页面
 *
 * filename : /admin/modules/content/views/content_data_view.php
 * date     : 2009-2-2 18:01
 * author   : hotgun
 * email    : hotgun@163.com
 * 
 * (c)copyright hotgun
 *
 * $Id: /admin/modules/content/views/content_data_view.php,v 1.0 2009-2-2 18:01 $
 */

// 取得返回字符串
$back_url   = strcode(getcookie('back_url'), 'DECODE');
if($back_url == '') $back_url   = $mod_url['li'];

// 处理字符串防止特殊符号引起的错误，
$process_include    = array('article_title', 'sub_title', 'keywords', 'url', 'brief', 'come_from', 'author', 'outer_url', 'hits',
    'seo_title', 'seo_keywords', 'seo_description'
    );
string_pre_process($viewvar, $process_include);

// 如果分类cid未指定，默认分类id为栏目id
if($viewvar['cid'] <= 0) $viewvar['cid'] = $cata;
if($viewvar['cata_order'] >= $G_big_integer || $viewvar['cata_order'] <= 0) $viewvar['cata_order'] = '';
// 创建时间
$viewvar['createtime'] = date(DATE_TIME_FORMAT, $viewvar['createtime']);
// 发布时间
$arr_time   = getdate($viewvar['pub_time']);
$viewvar['pub_date']    = date(DATE_FORMAT, $viewvar['pub_time']);
$viewvar['pub_hour']    = @(int)$arr_time['hours'];
$viewvar['pub_min']     = @(int)$arr_time['minutes'];
$viewvar['pub_sec']     = @(int)$arr_time['seconds'];
// 时间隐藏
$display_pubtime_H  = $G_cfg['article_cfg']['article_pubtime_H'] == 1 ? '' : 'style="display:none"';
$display_pubtime_i  = $G_cfg['article_cfg']['article_pubtime_i'] == 1 ? '' : 'style="display:none"';
$display_pubtime_s  = $G_cfg['article_cfg']['article_pubtime_s'] == 1 ? '' : 'style="display:none"';
// 附件跳转地址
$style_outeratt = 'display:none;';
$chk_outeratt   = '';
if($viewvar['outeratt'] != '') {
    $style_outeratt = 'display:block;';
    $chk_outeratt   = 'checked';
}

$tbl_zone   = $_TABLES['city'];
$conn       = & get_db_conn();
$sql1="SELECT * FROM $tbl_zone ORDER BY num asc";
$rs = & $conn->GetAll($sql1);

// 审核时间
$viewvar['chk_time']    = date(DATE_TIME_FORMAT, $viewvar['chk_time']);

if($_REQUEST['action']!="add")
$chk_display= $viewvar['display'] == 1 ? ' checked' : '';
else
$chk_display='checked';

// 顶
$chk_top    = $viewvar['top'] == 1 ? 'checked' : '';
$chk_guapai1    = $viewvar['type'] == 0 ? 'checked' : '';
$chk_guapai2    = $viewvar['type'] == 1 ? 'checked' : '';

$zd_type = $viewvar['zd_type'] == 1 ? 'checked' : '';
$jd_type = $viewvar['jd_type'] == 1 ? 'checked' : '';

$chk_liuzhuan0    = $viewvar['liuzhuan'] == 0 ? 'checked' : '';
$chk_liuzhuan1    = $viewvar['liuzhuan'] == 1 ? 'checked' : '';
$chk_liuzhuan2    = $viewvar['liuzhuan'] == 2 ? 'checked' : '';

if($action == 'modify') {
    $txt_form_title = '修改' . $cata_keylang;
} else {
    $txt_form_title = '新增' . $cata_keylang;
}


$tbl_article_params = $_TABLES['article_params'];
$conn   = & get_db_conn();

if(empty($chk_realname))
    $lab_chk_realname = '<font style=\"color:red\">未审核</font>';
else
    $lab_chk_realname = $chk_realname;

require($abs_admin_cppath . '/header.php');
?>
<link rel="stylesheet" href="<?php echo $url_global['common']; ?>/kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="<?php echo $url_global['common']; ?>/kindeditor/plugins/code/prettify.css" />
<script charset="utf-8" src="<?php echo $url_global['common']; ?>/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="<?php echo $url_global['common']; ?>/kindeditor/lang/zh_CN.js"></script>
<script charset="utf-8" src="<?php echo $url_global['common']; ?>/kindeditor/plugins/code/prettify.js"></script>
<script>
	KindEditor.ready(function(K) {
		var editor1 = K.create('textarea[id="content"]', {
			cssPath : '<?php echo $url_global['common']; ?>/kindeditor/plugins/code/prettify.css',
			uploadJson : '<?php echo $url_global['common']; ?>/kindeditor/php/upload_json.php',
			fileManagerJson : '<?php echo $url_global['common']; ?>/kindeditor/php/file_manager_json.php',
			allowFileManager : true,
			afterCreate : function() {
				var self = this;
				K.ctrl(document, 13, function() {
					self.sync();
					K('form[name=example]')[0].submit();
				});
				K.ctrl(self.edit.doc, 13, function() {
					self.sync();
					K('form[name=example]')[0].submit();
				});
			}
		});
        var editor2 = K.create('textarea[id="content1"]', {
			cssPath : '<?php echo $url_global['common']; ?>/kindeditor/plugins/code/prettify.css',
			uploadJson : '<?php echo $url_global['common']; ?>/kindeditor/php/upload_json.php',
			fileManagerJson : '<?php echo $url_global['common']; ?>/kindeditor/php/file_manager_json.php',
			allowFileManager : true,
			afterCreate : function() {
				var self = this;
				K.ctrl(document, 13, function() {
					self.sync();
					K('form[name=example]')[0].submit();
				});
				K.ctrl(self.edit.doc, 13, function() {
					self.sync();
					K('form[name=example]')[0].submit();
				});
			}
		});
		prettyPrint();
	});
</script>

<link rel="stylesheet" rev="stylesheet" href="<?php echo $url_global['common']; ?>/css/win.css" type="text/css" media="all">


<SCRIPT LANGUAGE="JavaScript" SRC="<?php echo $url_global['common']; ?>/js/win.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="<?php echo $url_global['common']; ?>/js/Validator.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="<?php echo $url_global['common']; ?>/js/popcalendar.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="<?php echo $url_global['common']; ?>/js/jquery-1.3.2.min.js"></SCRIPT>
<script src="<?php echo $url_global['common']; ?>/js/My97DatePicker/WdatePicker.js"></script>
		<div class="datacontainer2" style="width:90%;">
<div class="header">
<?php echo $txt_form_title ?>
</div>
<form action="<?php echo $mod_url['save'] ?>" method="post" name="article_data" enctype="multipart/form-data" onsubmit="return Validator.Validate(this,3);">
<table BORDER="0" cellpadding="0" cellspacing="0" width="100%" class="list_table">

<TR>
	<TD width="80" align="right" class="caption"><font color="red">*</font> 标的名称</TD>
	<TD class="cell" colspan="3">
		<input type="text" name="article[article_title]" id="article_title" value="<?php echo $viewvar['article_title']; ?>" class="text" style="width:440px;color:<?php echo $viewvar['tcolor'];?>"

		dataType="Require" dataType="Limit" min="1" max="255" msg="标的名称必须填写且必须符合上述规则">

		</div>
	</TD>
</TR>
<?php
/* +------------------------------------------------------------------------+ */
/**
 * 文章分类相关录入行开始
 * 如果当前栏目类型为单页文章或者为多页文章，不需要选择分类，
 * 指定分类id
 *
 */
if($cata_info['cata_type'] == 1 || $cata_info['cata_type'] == 2) {
    echo '<INPUT TYPE="hidden" NAME="article[cid]" value="'. $cata_info['cid'] .'">';
} else {
    // 含有分类的
?>
<TR>
	<TD width="80" align="right" class="caption"><font color="red">*</font> <?php echo $cata_keylang; ?>分类</TD>
	<TD class="cell" colspan="3">
	<select name="article[cid]" class="select01" onchange="article_class_onchange(this.value);">
<?php
if($cata <= 0) {
    echo "<option value=\"-1\" value1=\"| 专属专题 &#187;\">专属专题</option>";
    echo get_tree_node(0, $$class_var, $viewvar['cid']);
} else {
    $thisnode = get_node_info($$class_var, $viewvar['cid']);
    echo get_tree_node($cata, $$class_var, $viewvar['cid']);
}
?>
	</select>
	当前分类：<span id="div_class_info"><?php if($cata <= 0){echo "专属专题";}else{echo tree_node_path_text($thisnode['__node_path']);} ?></span>
	</TD>
</TR>
<?php
}
/* 文章分类相关录入行结束 */
/* +------------------------------------------------------------------------+ */
?>
<script>

function article_class_onchange(va){
    $('#xixi').css('display','none');
    $('#xixi6').css('display','none');
    $('#xixi7').css('display','none');
    $('#xixi8').css('display','none');
    $('#xixi9').css('display','none');
    $('#xixi10').css('display','none');
    $('#xixi'+va).css('display','');
    if(va!=6&&va!=7&&va!=8&&va!=9&&va!=10){
        $('#xixi').css('display','');
    }else{
        $('#xixi'+va).css('display','');
    }
}
</script>

<TR>
	<TD width="80" align="right" class="caption"><?php echo $cata_keylang; ?>属性</TD>
	<TD class="cell" colspan="3">
<?php
$icount = 0;
foreach($G_cfg['article_cfg']['article_flag'] as $flagkey => $flagitem) {
    $icount ++;
    $chk_flag = ($viewvar['flag'] & $flagkey) == $flagkey ? 'checked' : '';
    $input_onclick = '';
    if($flagkey == 16) $input_onclick = "onclick=\"dsp_chkbox2div2(this, 'div_url');\"";
?>
<INPUT TYPE="checkbox" NAME="article[flag][]" ID="article_flag_<?php echo $flagkey; ?>" VALUE="<?php echo $flagkey; ?>" <?php echo $chk_flag; ?> <?php echo $input_onclick; ?>> 
<label for="article_flag_<?php echo $flagkey; ?>"><?php echo $flagitem; ?></label>&nbsp;&nbsp;&nbsp;&nbsp;
<?php
    if($icount == 5 || $icount == 8 || $icount == 9 || $icount == 10) {
        echo "<br />";
    }
}
?>
	</TD>
</TR>
<TR>
	<TD width="80" align="right" class="caption">标签</TD>
	<TD class="cell" colspan="3">
	    <INPUT TYPE="checkbox" NAME="article[zd_type]" id="zd" value="1" <?php echo $zd_type; ?>> <label for="zd">重点项目</label>&nbsp;&nbsp;&nbsp;&nbsp;
        <INPUT TYPE="checkbox" NAME="article[jd_type]" id="jd" value="1" <?php echo $jd_type; ?>> <label for="jd">经典案例</label>&nbsp;
	</TD>
</TR>

<TR>
	<TD width="80" align="right" class="caption">项目挂牌</TD>
	<TD class="cell" colspan="3">
	    <INPUT TYPE="checkbox" NAME="article[guapai]" id="gp" value="1" <?php if($viewvar['guapai']){echo 'checked';} ?>> <label for="gp">挂牌</label>&nbsp;&nbsp;&nbsp;&nbsp;
	</TD>
</TR>

<TR>
	<TD width="80" align="right" class="caption"><font color="red">*</font> 交易意向</TD>
	<TD class="cell"  colspan="3">
        <?php foreach($intention_array as $k=>$v){?>
	    <INPUT TYPE="radio" NAME="article[intention]" id="inton<?php echo $k;?>" value="<?php echo $k;?>" <?php if($k==$viewvar['intention']){echo 'checked';} ?>> <label for="inton<?php echo $k;?>"><?php echo $v;?></label>&nbsp;&nbsp;&nbsp;&nbsp;
        <?php }?>
	</TD>
</TR>
<TR>
	<TD width="80" align="right" class="caption"><font color="red">*</font> 发布人信息</TD>
	<TD class="cell"  colspan="3">
        <?php foreach($pub_utype as $k=>$v){?>
	    <INPUT TYPE="radio" NAME="article[pub_utype]" id="inton1<?php echo $k;?>" value="<?php echo $k;?>" <?php if($k==$viewvar['pub_utype']){echo 'checked';} ?>> <label for="inton1<?php echo $k;?>"><?php echo $v;?></label>&nbsp;&nbsp;&nbsp;&nbsp;
        <?php }?>
	</TD>
</TR>
<TR>
	<TD	width="80" align="right" class="caption">套餐</TD>
	<TD	class="cell" colspan="3">
        <input type="radio" name="article[taocan]" value="0" <?php if(!$viewvar['taocan']){echo 'checked';} ?>/> 不使用
        <input type="radio" name="article[taocan]" value="1" <?php if($viewvar['taocan']==1){echo 'checked';} ?>/> A套餐
        <input type="radio" name="article[taocan]" value="2" <?php if($viewvar['taocan']==2){echo 'checked';} ?>/> B套餐
        <input type="radio" name="article[taocan]" value="3" <?php if($viewvar['taocan']==3){echo 'checked';} ?>/> C套餐
    </TD>
</TR>
<TR>
    <TD	width="80" align="right" class="caption">信息有效期</TD>
	<TD	class="cell">
        <input onClick="WdatePicker({dateFmt:'yyyy-M-d HH:mm:ss'});" name="article[endTime]" type='text' class='rili_txt' value="<?php if($viewvar['endTime']){echo date('Y-m-d H:i:s',$viewvar['endTime']);} ?>"/>
	</TD>
    <TD	width="80" align="right" class="caption"><font color="red">*</font> 区域</TD>
    <TD class="cell">
        <select name="article[num1]" id="num1" onchange="changenum(this.value,1,'num2')">
    		<option value="0"  selected="true">请选择</option>
    		<?php
    		if($rs) {
    			foreach($rs as $article) {
    				if($article['num']==0&&$article['num1']==0){
    				?>
    				<option value="<?php echo $article['id'];?>" <?php if($viewvar['city1']['id']==$article['id']){echo ' selected="true"';}?>><?php echo $article['cname'];?></option>
    				<?php
    				}
    			}
    		}?>
    	</select>
        <select name="article[num2]" id="num2" onchange="changenum(this.value,2,'num3')">
    		<option value="0"  selected="true">请选择</option>
    		<?php
    		if($rs&&$viewvar['city']['num']!=0) {
    			foreach($rs as $article) {
    				if($article['num']!=0&&$article['num1']==0&&$article['num']==$viewvar['city']['num']){
    				?>
    				<option value="<?php echo $article['id'];?>" <?php if($viewvar['city2']['id']==$article['id']){echo ' selected="true"';}?>><?php echo $article['cname'];?></option>
    				<?php
    				}
    			}
    		}?>
    	</select>
        <select name="article[num3]" id="num3">
    		<option value="0"  selected="true">请选择</option>
    		<?php
    		if($rs&&$viewvar['city']['num1']!=0) {
    			foreach($rs as $article) {
    				if($article['num']!=0&&$article['num1']!=0&&$article['num']==$viewvar['city']['num1']){
    				?>
    				<option value="<?php echo $article['id'];?>" <?php if($viewvar['city3']['id']==$article['id']){echo ' selected="true"';}?>><?php echo $article['cname'];?></option>
    				<?php
    				}
    			}
    		}?>
    	</select>
    </TD>
</TR>
<script>
<?php if($viewvar['city1']['id']){?>
    changenum('<?php echo $viewvar['city1']['id'];?>',1,'num2','<?php echo @(int)$viewvar['city2']['id'];?>');
<?php }?>

<?php if($viewvar['city2']['id']){?>
    changenum('<?php echo $viewvar['city2']['id'];?>',2,'num3','<?php echo @(int)$viewvar['city3']['id'];?>');
<?php }?>
function changenum(va,num,id,slid){
var op='<option value="0" >请选择</option>';
if(va!=0){
    url = '<?php echo $G_web_root.'/common/ajax.php?action=getCity';?>';//window.location.href=url+'&cid='+va+'&num=1&noid=<?php echo $record['id'];?>';
    $.post(url, {cid:va,num:num},function(data){
       if(data['type']==1){
           for(var i in data['data']){
               if(data['data'][i]['id']){
                   slc="";
                   if(slid!=''&&slid==data['data'][i]['id']){
                        slc=" selected ";
                   }
                   op+='<option value="'+data['data'][i]['id']+'" '+slc+'>'+data['data'][i]['cname']+'</option>';
               }
           }
       }
       $('#'+id).html(op);
       if(num==1&&!slid){
        $('#num3').html('<option value="0" >请选择</option>');
       }
    },'json');
}else{
    $('#'+id).html(op);
    if(num==1){
        $('#num3').html(op);
    }
}
}
</script>
<TR>
	<TD	width="80" align="right" class="caption"><font color="red">*</font> 挂牌价</TD>
	<TD	class="cell"><input type="text" name="article[price]" size="20" value="<?php echo $viewvar['price']; ?>" class="text" dataType="Require" dataType="Limit" min="1" max="255" msg="挂牌价必须填写"> 万元</TD>
    <TD	width="80" align="right" class="caption">评估价</TD>
	<TD	class="cell"><input type="text" name="article[price_pg]" size="20" value="<?php echo $viewvar['price_pg']; ?>" class="text"> 万元</TD>
</TR>
<TR>
    <TD	width="80" align="right" class="caption">税费承担</TD>
	<TD	class="cell"><input type="text" name="article[assume]" size="20" value="<?php echo $viewvar['assume']; ?>" class="text"></TD>
    <TD	width="80" align="right" class="caption">付款方式</TD>
	<TD	class="cell"><input type="text" name="article[pay_fun]" size="20" value="<?php echo $viewvar['pay_fun']; ?>" class="text"></TD>
</TR>

<TR>
	<TD width="80" align="right" class="caption"><font color="red">*</font> 联系人信息</TD>
	<TD class="cell" colspan="3">
		<TABLE border="0" width="620">
        <TR>
			<TD	width="100">联系人：</TD>
			<TD	width="120">
                <input type="text" name="article[lkMan]" size="20" value="<?php echo $viewvar['lkMan']; ?>" class="text" dataType="Require" dataType="Limit" min="1" max="255" msg="联系人必须填写">
                <INPUT TYPE="radio" NAME="article[lkSex]" id="lkm" value="0" <?php if(!$viewvar['lkSex']){echo 'checked';} ?>> <label for="lkm">先生</label>&nbsp;&nbsp;&nbsp;&nbsp;
                <INPUT TYPE="radio" NAME="article[lkSex]" id="lkw" value="1" <?php if(1==$viewvar['lkSex']){echo 'checked';} ?>> <label for="lkw">女士</label>&nbsp;&nbsp;&nbsp;&nbsp;    
            </TD>
		</TR>
        <TR>
			<TD	width="100">手机号：</TD>
			<TD	width="120"><input type="text" name="article[lkPhone]" size="20" value="<?php echo $viewvar['lkPhone']; ?>" class="text" dataType="Require" dataType="Limit" min="1" max="255" msg="手机号必须填写"></TD>
		</TR>
        <TR>
			<TD	width="100">联系时间：</TD>
			<TD	width="120"><input type="text" name="article[lkTime]" size="20" value="<?php echo $viewvar['lkTime']; ?>" class="text" dataType="Require" dataType="Limit" min="1" max="255" msg="联系时间必须填写"></TD>
		</TR>
		</TABLE>
	</TD>
</TR>
<TR id="xixi" style="display:none">
	<TD width="80" align="right" class="caption">项目信息</TD>
	<TD class="cell" colspan="3">
		<TABLE border="0" width="620">
        <TR>
			<TD	width="100">项目编号：</TD>
			<TD	width="120"><input type="text" name="article[params][order_no]" size="20" value="<?php echo $viewvar['pars']['order_no']; ?>" class="text"></TD>
		</TR>
		</TABLE>
	</TD>
</TR>
<TR id="xixi6" style="display:none">
	<TD width="80" align="right" class="caption">项目信息</TD>
	<TD class="cell" colspan="3">
		<TABLE border="0" width="620">
        <TR>
			<TD	width="100">项目编号：</TD>
			<TD	width="120" colspan="3"><input type="text" name="article[params6][order_no]" size="20" value="<?php echo $viewvar['pars']['order_no']; ?>" class="text"></TD>
		</TR>
        <TR>
			<TD	width="100">类型：</TD>
			<TD	width="120" colspan="3">
                <INPUT TYPE="radio" onclick="jptype(0)" NAME="article[params6][type]" id="zz" value="0" <?php if(!$viewvar['pars']['type']){echo 'checked';} ?>> <label for="zz">住宅类</label>&nbsp;&nbsp;&nbsp;&nbsp;
                <INPUT TYPE="radio" onclick="jptype(1)" NAME="article[params6][type]" id="gs" value="1" <?php if(1==$viewvar['pars']['type']){echo 'checked';} ?>> <label for="gs">工商类</label>&nbsp;&nbsp;&nbsp;&nbsp;
            </TD>
		</TR>
        <TR id='zz1'>
			<TD	width="100">详细地址：</TD>
			<TD	width="120" colspan="3"><input type="text" name="article[params6][address]" size="60" value="<?php echo $viewvar['pars']['address']; ?>" class="text"></TD>
		</TR>
        <TR id='zz2'>
			<TD	width="100">户型：</TD>
			<TD	width="120"><input type="text" name="article[params6][houseType]" size="20" value="<?php echo $viewvar['pars']['houseType']; ?>" class="text"></TD>
            <TD	width="100">布局：</TD>
			<TD	width="120"><input type="text" name="article[params6][layout]" size="20" value="<?php echo $viewvar['pars']['layout']; ?>" class="text"></TD>
		</TR>
        <TR id='zz3'>
			<TD	width="100">楼层：</TD>
			<TD	width="120"><input type="text" name="article[params6][floor]" size="20" value="<?php echo $viewvar['pars']['floor']; ?>" class="text"></TD>
            <TD	width="100">装修：</TD>
			<TD	width="120"><input type="text" name="article[params6][fitment]" size="20" value="<?php echo $viewvar['pars']['fitment']; ?>" class="text"></TD>
		</TR>
        <TR>
			<TD	width="100" id='zz4'>建成年份：</TD>
			<TD	width="120" id='zz5'><input type="text" name="article[params6][overYear]" size="20" value="<?php echo $viewvar['pars']['overYear']; ?>" class="text"></TD>
            <TD	width="100" id='gs1'>建筑面积：</TD>
			<TD	width="120" id='gs2'><input type="text" name="article[params6][areaB]" size="20" value="<?php echo $viewvar['pars']['areaB']; ?>" class="text"> ㎡</TD>
            <TD	width="100">土地面积：</TD>
			<TD	width="120"><input type="text" name="article[params6][areaL]" size="20" value="<?php echo $viewvar['pars']['areaL']; ?>" class="text"></TD>
		</TR>
        <TR>
			<TD	width="100">房产证明：</TD>
			<TD	width="120"><input type="text" name="article[params6][prove]" size="20" value="<?php echo $viewvar['pars']['prove']; ?>" class="text"></TD>
            <TD	width="100">土地性质：</TD>
			<TD	width="120"><input type="text" name="article[params6][nature]" size="20" value="<?php echo $viewvar['pars']['nature']; ?>" class="text"></TD>
		</TR>
        <TR>
			<TD	width="100">房产类型：</TD>
			<TD	width="120" colspan="3"><input type="text" name="article[params6][propertyType]" size="20" value="<?php echo $viewvar['pars']['propertyType']; ?>" class="text"></TD>
		</TR>
        <TR>
			<TD	width="100">附房面积：</TD>
			<TD	width="120"><input type="text" name="article[params6][areaA]" size="20" value="<?php echo $viewvar['pars']['areaA']; ?>" class="text"> ㎡</TD>
            <TD	width="100">附房形式：</TD>
			<TD	width="120"><input type="text" name="article[params6][formA]" size="20" value="<?php echo $viewvar['pars']['formA']; ?>" class="text"></TD>
		</TR>
        <TR>
			<TD	width="100">转租费用：</TD>
			<TD	width="120"><input type="text" name="article[params6][cost]" size="20" value="<?php echo $viewvar['pars']['cost']; ?>" class="text"></TD>
            <TD	width="100">交付期限：</TD>
			<TD	width="120"><input type="text" name="article[params6][deadline]" size="20" value="<?php echo $viewvar['pars']['deadline']; ?>" class="text"></TD>
		</TR>
        <TR id='zz6'>
			<TD	width="100">附加设施：</TD>
			<TD	width="120" colspan="3"><input type="text" name="article[params6][facility]" size="60" value="<?php echo $viewvar['pars']['facility']; ?>" class="text"></TD>
		</TR>
        <TR id='zz7'>
			<TD	width="100">周边配套：</TD>
			<TD	width="120" colspan="3"><input type="text" name="article[params6][ambitus]" size="60" value="<?php echo $viewvar['pars']['ambitus']; ?>" class="text"></TD>
		</TR>
        <TR>
			<TD	width="100">其他：</TD>
			<TD	width="120" colspan="3"><input type="text" name="article[params6][other]" size="60" value="<?php echo $viewvar['pars']['other']; ?>" class="text"></TD>
		</TR>
		</TABLE>
	</TD>
</TR>

<script>
<?php if(1==$viewvar['pars']['type']){?>jptype(1);<?php }else{?>jptype(0);<?php } ?>
function jptype(type){
    if(type==0){
        $('#zz1').css('display','');
        $('#zz2').css('display','');
        $('#zz3').css('display','');
        $('#zz4').css('display','');
        $('#zz5').css('display','');
        $('#zz6').css('display','');
        $('#zz7').css('display','');
        $('#gs1').css('display','none');
        $('#gs2').css('display','none');
    }else{
        $('#zz1').css('display','none');
        $('#zz2').css('display','none');
        $('#zz3').css('display','none');
        $('#zz4').css('display','none');
        $('#zz5').css('display','none');
        $('#zz6').css('display','none');
        $('#zz7').css('display','none');
        $('#gs1').css('display','');
        $('#gs2').css('display','');
    }
}
</script>
<TR id="xixi7" style="display:none">
	<TD width="80" align="right" class="caption">项目信息</TD>
	<TD class="cell" colspan="3">
		<TABLE border="0" width="620">
        <TR>
			<TD	width="100">项目编号：</TD>
			<TD	width="120" colspan="3"><input type="text" name="article[params7][order_no]" size="20" value="<?php echo $viewvar['pars']['order_no']; ?>" class="text"></TD>
		</TR>
        <TR>
			<TD	width="100">企业注册地：</TD>
			<TD	width="120" ><input type="text" name="article[params7][domicile]" size="20" value="<?php echo $viewvar['pars']['domicile']; ?>" class="text"> </TD>
            <TD	width="100">经营范围：</TD>
			<TD	width="120" ><input type="text" name="article[params7][scope]" size="20" value="<?php echo $viewvar['pars']['scope']; ?>" class="text"> </TD>
		</TR>
        <TR>
			<TD	width="100">成立时间：</TD>
			<TD	width="120" ><input type="text" name="article[params7][overTime]" size="20" value="<?php echo $viewvar['pars']['overTime']; ?>" class="text"> </TD>
            <TD	width="100">注册资金：</TD>
			<TD	width="120" ><input type="text" name="article[params7][capitalR]" size="20" value="<?php echo $viewvar['pars']['capitalR']; ?>" class="text"> 万元</TD>
		</TR>
        <TR>
			<TD	width="100">企业类型：</TD>
			<TD	width="120" ><input type="text" name="article[params7][type]" size="20" value="<?php echo $viewvar['pars']['type']; ?>" class="text"> </TD>
            <TD	width="100">实收资金：</TD>
			<TD	width="120" ><input type="text" name="article[params7][capitalP]" size="20" value="<?php echo $viewvar['pars']['capitalP']; ?>" class="text"> 万元</TD>
		</TR>
        <TR>
			<TD	width="100">股东人数：</TD>
			<TD	width="120" ><input type="text" name="article[params7][numS]" size="20" value="<?php echo $viewvar['pars']['numS']; ?>" class="text"> </TD>
            <TD	width="100">职工人数：</TD>
			<TD	width="120" ><input type="text" name="article[params7][numW]" size="20" value="<?php echo $viewvar['pars']['numW']; ?>" class="text"> </TD>
		</TR>
        <TR>
			<TD	width="100">大股东占比：</TD>
			<TD	width="120" ><input type="text" name="article[params7][hold]" size="20" value="<?php echo $viewvar['pars']['hold']; ?>" class="text"> </TD>
            <TD	width="100">离退人员：</TD>
			<TD	width="120" ><input type="text" name="article[params7][numL]" size="20" value="<?php echo $viewvar['pars']['numL']; ?>" class="text"> </TD>
		</TR>
        <TR>
			<TD	width="100">主营业务：</TD>
			<TD	width="120" colspan="3"><input type="text" name="article[params7][business]" size="60" value="<?php echo $viewvar['pars']['business']; ?>" class="text"> </TD>
		</TR>
        <TR>
			<TD	width="100">项目属性：</TD>
			<TD	width="120" ><input type="text" name="article[params7][attribute]" size="20" value="<?php echo $viewvar['pars']['attribute']; ?>" class="text"> </TD>
            <TD	width="100">认证/荣誉：</TD>
			<TD	width="120" ><input type="text" name="article[params7][honor]" size="20" value="<?php echo $viewvar['pars']['honor']; ?>" class="text"> </TD>
		</TR>
        <TR>
			<TD	width="100">主要资产：</TD>
			<TD	width="120" ><input type="text" name="article[params7][property]" size="20" value="<?php echo $viewvar['pars']['property']; ?>" class="text"> </TD>
            <TD	width="100">主要负债：</TD>
			<TD	width="120" ><input type="text" name="article[params7][loadmain]" size="20" value="<?php echo $viewvar['pars']['loadmain']; ?>" class="text"> </TD>
		</TR>
        <TR>
			<TD	width="100">近三年利润表：</TD>
			<TD	width="120" ><input type="text" name="article[params7][profitT]" size="20" value="<?php echo $viewvar['pars']['profitT']; ?>" class="text"> </TD>
            <TD	width="100">近三年负债表：</TD>
			<TD	width="120" ><input type="text" name="article[params7][loadT]" size="20" value="<?php echo $viewvar['pars']['loadT']; ?>" class="text"> </TD>
		</TR>
        <TR>
			<TD	width="100">股东优先意愿：</TD>
			<TD	width="120" ><input type="text" name="article[params7][aspirationS]" size="20" value="<?php echo $viewvar['pars']['aspirationS']; ?>" class="text"> </TD>
            <TD	width="100">管理层意愿：</TD>
			<TD	width="120" ><input type="text" name="article[params7][aspirationM]" size="20" value="<?php echo $viewvar['pars']['aspirationM']; ?>" class="text"> </TD>
		</TR>
        <TR>
			<TD	width="100">拟受让比例：</TD>
			<TD	width="120" ><input type="text" name="article[params7][ratio]" size="20" value="<?php echo $viewvar['pars']['ratio']; ?>" class="text"> </TD>
            <TD	width="100">监督机构：</TD>
			<TD	width="120" ><input type="text" name="article[params7][organization]" size="20" value="<?php echo $viewvar['pars']['organization']; ?>" class="text"> </TD>
		</TR>
		</TABLE>
	</TD>
</TR>
<TR id="xixi8" style="display:none">
	<TD width="80" align="right" class="caption">项目信息</TD>
	<TD class="cell" colspan="3">
		<TABLE border="0" width="620">
        <TR>
			<TD	width="100">项目编号：</TD>
			<TD	width="120" colspan="3"><input type="text" name="article[params8][order_no]" size="20" value="<?php echo $viewvar['pars']['order_no']; ?>" class="text"></TD>
		</TR>
        <TR>
			<TD	width="100">企业注册地：</TD>
			<TD	width="120" ><input type="text" name="article[params8][domicile]" size="20" value="<?php echo $viewvar['pars']['domicile']; ?>" class="text"> </TD>
            <TD	width="100">经营范围：</TD>
			<TD	width="120" ><input type="text" name="article[params8][scope]" size="20" value="<?php echo $viewvar['pars']['scope']; ?>" class="text"> </TD>
		</TR>
        <TR>
			<TD	width="100">成立时间：</TD>
			<TD	width="120" ><input type="text" name="article[params8][overTime]" size="20" value="<?php echo $viewvar['pars']['overTime']; ?>" class="text"> </TD>
            <TD	width="100">注册资金：</TD>
			<TD	width="120" ><input type="text" name="article[params8][capitalR]" size="20" value="<?php echo $viewvar['pars']['capitalR']; ?>" class="text"> 万元</TD>
		</TR>
        <TR>
			<TD	width="100">企业类型：</TD>
			<TD	width="120" ><input type="text" name="article[params8][type]" size="20" value="<?php echo $viewvar['pars']['type']; ?>" class="text"> </TD>
            <TD	width="100">实收资金：</TD>
			<TD	width="120" ><input type="text" name="article[params8][capitalP]" size="20" value="<?php echo $viewvar['pars']['capitalP']; ?>" class="text"> 万元</TD>
		</TR>
        <TR>
			<TD	width="100">股东人数：</TD>
			<TD	width="120" ><input type="text" name="article[params8][numS]" size="20" value="<?php echo $viewvar['pars']['numS']; ?>" class="text"> </TD>
            <TD	width="100">职工人数：</TD>
			<TD	width="120" ><input type="text" name="article[params8][numW]" size="20" value="<?php echo $viewvar['pars']['numW']; ?>" class="text"> </TD>
		</TR>
        <TR>
			<TD	width="100">大股东占比：</TD>
			<TD	width="120" ><input type="text" name="article[params8][hold]" size="20" value="<?php echo $viewvar['pars']['hold']; ?>" class="text"> </TD>
            <TD	width="100">离退人员：</TD>
			<TD	width="120" ><input type="text" name="article[params8][numL]" size="20" value="<?php echo $viewvar['pars']['numL']; ?>" class="text"> </TD>
		</TR>
        <TR>
			<TD	width="100">主营业务：</TD>
			<TD	width="120" colspan="3"><input type="text" name="article[params8][business]" size="60" value="<?php echo $viewvar['pars']['business']; ?>" class="text"> </TD>
		</TR>
        <TR>
			<TD	width="100">项目属性：</TD>
			<TD	width="120" ><input type="text" name="article[params8][attribute]" size="20" value="<?php echo $viewvar['pars']['attribute']; ?>" class="text"> </TD>
            <TD	width="100">认证/荣誉：</TD>
			<TD	width="120" ><input type="text" name="article[params8][honor]" size="20" value="<?php echo $viewvar['pars']['honor']; ?>" class="text"> </TD>
		</TR>
        <TR>
			<TD	width="100">主要资产：</TD>
			<TD	width="120" ><input type="text" name="article[params8][property]" size="20" value="<?php echo $viewvar['pars']['property']; ?>" class="text"> </TD>
            <TD	width="100">主要负债：</TD>
			<TD	width="120" ><input type="text" name="article[params8][loadmain]" size="20" value="<?php echo $viewvar['pars']['loadmain']; ?>" class="text"> </TD>
		</TR>
        <TR>
			<TD	width="100">近三年利润表：</TD>
			<TD	width="120" ><input type="text" name="article[params8][profitT]" size="20" value="<?php echo $viewvar['pars']['profitT']; ?>" class="text"> </TD>
            <TD	width="100">近三年负债表：</TD>
			<TD	width="120" ><input type="text" name="article[params8][loadT]" size="20" value="<?php echo $viewvar['pars']['loadT']; ?>" class="text"> </TD>
		</TR>
        <TR>
			<TD	width="100">股东优先意愿：</TD>
			<TD	width="120" ><input type="text" name="article[params8][aspirationS]" size="20" value="<?php echo $viewvar['pars']['aspirationS']; ?>" class="text"> </TD>
            <TD	width="100">管理层意愿：</TD>
			<TD	width="120" ><input type="text" name="article[params8][aspirationM]" size="20" value="<?php echo $viewvar['pars']['aspirationM']; ?>" class="text"> </TD>
		</TR>
        <TR>
			<TD	width="100">拟受让比例：</TD>
			<TD	width="120" ><input type="text" name="article[params8][ratio]" size="20" value="<?php echo $viewvar['pars']['ratio']; ?>" class="text"> </TD>
            <TD	width="100">监督机构：</TD>
			<TD	width="120" ><input type="text" name="article[params8][organization]" size="20" value="<?php echo $viewvar['pars']['organization']; ?>" class="text"> </TD>
		</TR>
		</TABLE>
	</TD>
</TR>
<TR id="xixi9" style="display:none">
	<TD width="80" align="right" class="caption">项目信息</TD>
	<TD class="cell" colspan="3">
		<TABLE border="0" width="620">
        <TR>
			<TD	width="100">项目编号：</TD>
			<TD	width="120"><input type="text" name="article[params9][order_no]" size="20" value="<?php echo $viewvar['pars']['order_no']; ?>" class="text"></TD>
		</TR>
		</TABLE>
	</TD>
</TR>
<TR id="xixi10" style="display:none">
	<TD width="80" align="right" class="caption">项目信息</TD>
	<TD class="cell" colspan="3">
		<TABLE border="0" width="620">
        <TR>
			<TD	width="100">项目编号：</TD>
			<TD	width="120" colspan="3"><input type="text" name="article[params10][order_no]" size="20" value="<?php echo $viewvar['pars']['order_no']; ?>" class="text"></TD>
		</TR>
        <TR>
			<TD	width="100">转让方式：</TD>
			<TD	width="120" ><input type="text" name="article[params10][way]" size="20" value="<?php echo $viewvar['pars']['way']; ?>" class="text"></TD>
            <TD	width="100">作者：</TD>
			<TD	width="120" ><input type="text" name="article[params10][author]" size="20" value="<?php echo $viewvar['pars']['author']; ?>" class="text"></TD>
		</TR>
        <TR>
			<TD	width="100">权属性质：</TD>
			<TD	width="120" ><input type="text" name="article[params10][nature]" size="20" value="<?php echo $viewvar['pars']['nature']; ?>" class="text"></TD>
            <TD	width="100">专利类型：</TD>
			<TD	width="120" ><input type="text" name="article[params10][patents]" size="20" value="<?php echo $viewvar['pars']['patents']; ?>" class="text"></TD>
		</TR>
        <TR>
			<TD	width="100">总投资额：</TD>
			<TD	width="120" ><input type="text" name="article[params10][money]" size="20" value="<?php echo $viewvar['pars']['money']; ?>" class="text"> 万元</TD>
            <TD	width="100">法律状态：</TD>
			<TD	width="120" ><input type="text" name="article[params10][state]" size="20" value="<?php echo $viewvar['pars']['state']; ?>" class="text"></TD>
		</TR>
        <TR>
			<TD	width="100">批准证书：</TD>
			<TD	width="120" ><input type="text" name="article[params10][certificate]" size="20" value="<?php echo $viewvar['pars']['certificate']; ?>" class="text"></TD>
            <TD	width="100">所处阶段：</TD>
			<TD	width="120" ><input type="text" name="article[params10][phase]" size="20" value="<?php echo $viewvar['pars']['phase']; ?>" class="text"></TD>
		</TR>
        <TR>
			<TD	width="100">权力类别：</TD>
			<TD	width="120" ><input type="text" name="article[params10][category]" size="20" value="<?php echo $viewvar['pars']['category']; ?>" class="text"></TD>
            <TD	width="100">转让区域：</TD>
			<TD	width="120" ><input type="text" name="article[params10][cityZ]" size="20" value="<?php echo $viewvar['pars']['cityZ']; ?>" class="text"></TD>
		</TR>
        <TR>
			<TD	width="100">权利期限：</TD>
			<TD	width="120" ><input type="text" name="article[params10][deadline]" size="20" value="<?php echo $viewvar['pars']['deadline']; ?>" class="text"></TD>
            <TD	width="100">类别：</TD>
			<TD	width="120" ><input type="text" name="article[params10][type]" size="20" value="<?php echo $viewvar['pars']['type']; ?>" class="text"></TD>
		</TR>
		</TABLE>
	</TD>
</TR>


<TR>
	<TD class="submit" colspan="4" align="center">
		<input type="submit" value=" 保存 " class="btn">
		<input type="reset" value=" 重置 " class="btn">
		<input type="button" value=" 返回 " class="btn" onclick="location.href='<?php echo $back_url?>'">
	</TD>
</TR>
<TR>
    <TD class="cell graycell">
        项目介绍
    </TD>  
	<TD colspan="3" class="cell graycell">
<?php
//编辑器
/*require($G_abs_common . '/fckeditor/fckeditor.php');
$oFCKeditor             = new FCKeditor('article[content]') ;
$oFCKeditor->BasePath   = $G_web_common . '/fckeditor/';
$oFCKeditor->UpPath     = '/upload/site/';
$oFCKeditor->Value      = $viewvar['content'];
$oFCKeditor->Width      = '100%';
$oFCKeditor->Height     = 400;
$FCKeditHtml            = $oFCKeditor->CreateHtml() ;
echo $FCKeditHtml;*/
?>
        <textarea name="article[content]" id="content" style="width:700px;height:400px;visibility:hidden;"><?php echo htmlspecialchars($viewvar['content']); ?></textarea>
	</TD>
</TR>
<TR>
    <TD class="cell graycell">
        鉴定报告
    </TD>  
	<TD colspan="3" class="cell graycell">
<?php
//编辑器
/*require($G_abs_common . '/fckeditor/fckeditor.php');
$oFCKeditor             = new FCKeditor('article[content1]') ;
$oFCKeditor->BasePath   = $G_web_common . '/fckeditor/';
$oFCKeditor->UpPath     = '/upload/site/';
$oFCKeditor->Value      = $viewvar['content1'];
$oFCKeditor->Width      = '100%';
$oFCKeditor->Height     = 400;
$FCKeditHtml            = $oFCKeditor->CreateHtml() ;
echo $FCKeditHtml;*/
?>
    <textarea name="article[content1]" id="content1" style="width:700px;height:400px;visibility:hidden;"><?php echo htmlspecialchars($viewvar['content1']); ?></textarea>
	</TD>
</TR>
<TR>
	<TD width="80" align="right" class="caption"><?php echo $cata_keylang; ?>鉴定报告附件</TD>
	<TD class="cell" colspan="2" valign="top" align="left">
        <span id="html_video"><?php
            $att    = explode('|', $viewvar['att']);
            if(is_array($att)) {
                $icount = 0;
                foreach($att as $v) {
                    $v  = trim($v);
                    if($v == '') continue;
            
                    $br = $icount > 0 ? '<br>' : '';
                    $vfilename  = substr($v, (strrpos($v, '/')+1));
                    echo "<input type=\"checkbox\" name=\"article[att][]\" value=\"{$v}\" checked> <a href=\"{$G_web_upload}{$v}\" target=\"_blank\">{$vfilename}</a> <br>";
                    $icount ++;
                }
            }
            ?></span>
            <iframe src="<?php echo $G_app_root ?>/admin/modules/flashupload/upload_save.php" style="border:none"
            width="420" height="30" frameborder="0" framespacing="0" scrolling="NO"></iframe>
            
            <INPUT TYPE="checkbox" NAME="article[chk_outeratt]" ID="outeratt" VALUE="1" <?php echo $chk_outeratt; ?> onclick="return outer_file_url_onclick(this);"> <label for="outeratt">直接输入URL链接</label>
            <div id="html_file_url" style="<?php echo $style_outeratt; ?>">
            <input type="text" name="article[outeratt]" value="<?php echo $viewvar['outeratt']; ?>" class="text" size="59" style="width:420px;"></div>
            
	</TD>
	<TD align="left" valign="middle"></TD>
</TR>
<TR>
	<TD width="80" align="right" class="caption">项目简介</TD>
	<TD class="cell" colspan="3">
<TABLE  width="100%" cellpadding="0" cellspacing="0" class="non_border">
	<TR>
		<TD width="500"><TEXTAREA NAME="article[brief]" ROWS="8" COLS="50" CLASS="area wp98"><?php echo $viewvar['brief']; ?></TEXTAREA></TD>
		<TD><div class="hint"></div></TD>
	</TR>
</TABLE>
	</TD>
</TR>
<TR>
	<TD width="80" align="right" class="caption"><?php echo $cata_keylang; ?>缩略图片</TD>
	<TD class="cell" colspan="2" valign="top" align="left">


<?php
$viewvar['small_image'] = get_upfile_url($viewvar['small_image'], $url_global['common'] . '/images/nopic.jpg');//'common' -> 'admin_theme'
echo get_html_img_record($viewvar['small_images'], 'small_image');
?>
<INPUT TYPE="checkbox" NAME="article[makethumb]" ID="makethumb" VALUE="1" > <label for="makethumb">生成缩略图</label>
宽<input type="text" name="article[makethumbwidth]" value="101" class="text" size="1">X 高<input type="text" name="article[makethumbheight]" value="77" class="text" size="1">
<div class="hint">
	<!-- 考虑到图片变形的因素，请尽量按 <font color="red">245 * 186</font> 的图片或相近比例上传图片！ -->
</div>
	</TD>
	<TD align="left" valign="middle"><img id="obj_small_image" src="<?php echo $viewvar['small_image']; ?>" width="120" height="90"></TD>
</TR>

<TR>
	<TD width="80" align="right" class="caption">发布时间</TD>
	<TD class="cell" title="格式：年-月-日" width="260">

	<input type="text" name="article[pub_date]" id="pub_date" value="<?php echo $viewvar['pub_date']; ?>" class="text" size="12" style="font-size:10px">
	<script language=JavaScript>
	<!--
		arrowtag("pub_date",'<?php echo $url_global['common']; ?>/images/datetime.gif');
	//-->
	</script>

	<select name="article[pub_hour]" class="select01" <?php echo $display_pubtime_H; ?>>
	<?php echo get_option_hour($viewvar['pub_hour']); ?>
	</select>:
	<select name="article[pub_min]" class="select01" <?php echo $display_pubtime_i; ?>>
	<?php echo get_option_minute($viewvar['pub_min']); ?>
	</select>:
	<select name="article[pub_sec]" class="select01" <?php echo $display_pubtime_s; ?>>
	<?php echo get_option_second($viewvar['pub_sec']); ?>
	</select>

	</TD>
	<TD width="80">&nbsp;</TD>
	<TD>
	[<?php echo $viewvar['pub_username']; ?>]<?php echo $viewvar['pub_realname']; ?>@<span class="time01"><?php echo $viewvar['createtime']; ?></span>
	<input type="hidden" name="article[pub_userid]" value="<?php echo $viewvar['pub_userid']; ?>"> 

	</TD>
</TR>
<TR>
	<TD width="80" align="right" class="caption">审核</TD>
	<TD class="cell" width="260">
		<label for="valid">审核</label><input type="checkbox" name="article[display]" id="display" value="1" <?php echo $chk_display?> <?php if(!is_su()) echo "disabled=disabled"; ?>> 
	</TD>
	<TD width="80">&nbsp;</TD>
	<TD>
<?php
// + ##############  +//
if($viewvar['display']  == 1) {
// + ##############  +//
if($viewvar['chk_userid'] > 0) {
?>
	[<?php echo $viewvar['chk_username']; ?>]<?php echo $viewvar['chk_realname']; ?>@<span class="time01"><?php echo $viewvar['chk_time']; ?></span>
	<input type="hidden" name="article[chk_username]" value="<?php echo $viewvar['chk_username']; ?>">
	<input type="hidden" name="article[chk_realname]" value="<?php echo $viewvar['chk_realname']; ?>">
	<input type="hidden" name="article[chk_userid]" value="<?php echo $viewvar['chk_userid']; ?>">
<?php
// + ##############  +//
} else {
        echo "已审核@";
}
// + ##############  +//
} else {
    echo "<font style=\"color:#f00\">未审核</font>";
}
?>
	</TD>
</TR>
<TR>
	<TD width="80" align="right" class="caption"><?php echo $cata_keylang; ?>排序</TD>
	<TD class="cell" colspan="3">

		<img src="<?php echo $url_global['common'] ?>/images/hit.gif" title="点击次数">
		点击：<input type="text" name="article[hits]" size="3" value="<?php echo $viewvar['hits']; ?>" 
				
				onkeydown="return non_num_filter();" 
				class="text"
				style="text-align:right;padding-right:2px;"> &nbsp;&nbsp;

		本栏目内排序：<input type="text" name="article[cata_order]" size="3" value="<?php echo $viewvar['cata_order']; ?>" 
				
				onkeydown="return non_num_filter();" 
				class="text"
				style="text-align:right;padding-right:2px;">
	</TD>
</TR>
<?php
// 看当前分类的根分类有无参数，如果没有参数则不显示自定义参数
if(0 && @$cata_info['__node_path'][0]['defparam'] == 1) {
?>
<TR><TD width="80" align="right" class="caption">自定义参数</TD><TD class="cell" colspan="3" align="top" id="param_html"></TD></TR>
<SCRIPT LANGUAGE="JavaScript" SRC="<?php echo $url_site['common']; ?>/js/jquery.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="<?php echo $url_site['common']; ?>/content/js/content.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
var param_ajaxurl = '<?php echo $url_site['common']; ?>/content/ajax.php';
articleparam_list('<?php echo $cid; ?>', '<?php echo $aid; ?>');
//-->
</SCRIPT>
<?php
}
?>
<TR>
	<TD width="80" align="right" class="caption">SEO</TD>
	<TD class="cell" colspan="3">
<TABLE border="0" cellpadding="2" cellspacing="2" width="90%" class="none_border">
<TR>
    <TD width="80" align="right">title：</TD>
    <TD><input type="text" name="article[seo_title]" value="<?php echo $viewvar['seo_title']; ?>" class="text width90pc" Require="false" dataType="Limit" max="255" msg="页面自定义title不能超过255个字符">
<div class="hint">如无特殊需要，请不要填写该信息的title，系统会将页面自动默认为文章标题。</div></TD>
</TR>
<TR>
    <TD width="80" align="right">keywords：</TD>
    <TD><input type="text" name="article[seo_keywords]" value="<?php echo $viewvar['seo_keywords']; ?>" class="text width90pc" Require="false" dataType="Limit" max="255" msg="keywords不能超过255个字符"></TD>
</TR>
<TR>
    <TD width="80" align="right">description：</TD>
    <TD><input type="text" name="article[seo_description]" value="<?php echo $viewvar['seo_description']; ?>" class="text width90pc" Require="false" dataType="Limit" max="255" msg="description不能超过255个字符"></TD>
</TR>
</TABLE>
	</TD>
</TR>

<TR>
	<TD class="submit" colspan="4" align="center">
		<input type="submit" value=" 保存 " class="btn">
		<input type="reset" value=" 重置 " class="btn">
		<input type="button" value=" 返回 " class="btn" onclick="location.href='<?php echo $back_url; ?>'">
		<input type="hidden" name="article[showid]" id="showid" value="<?php echo $viewvar['showid'];?>">
		<input type="hidden" name="article[aid]" value="<?php echo $viewvar['aid']; ?>">
		<input type="hidden" name="article[gsid]" value="<?php echo $viewvar['gsid']; ?>">
		<input type="hidden" name="article[uid]" value="<?php echo $viewvar['uid']; ?>">
		<input type="hidden" name="article[cata]" value="<?php echo $cata; ?>">
		<input type="hidden" name="save" value="<?php echo $save_flag; ?>">
	</TD>
</TR>

</TABLE>
</form>
		</div>
<?php
echo_html_img_js()
?>
<SCRIPT LANGUAGE="JavaScript">
<!--
function outer_file_url_onclick(o) {
    var div = GE('html_file_url');
    if(o.checked) {
        div.style.display = 'block';
    } else {
        div.style.display = 'none';
    }
}
//-->
</SCRIPT>
<script> 
function sszd(x){
	var url	= '<?php echo $G_web_root;?>/ajax/getcity.php?city='+x;
	$.get(url,function(data){
			$("#city_list").html(unescape(data));
	});
}
<?php if($pars['city']){?>
    var url	= '<?php echo $G_web_root;?>/ajax/getcity.php?city=510000&not=y&sel=<?php echo $pars['city'];?>';
	$.get(url,function(data){
			$("#city").html(unescape(data));
	});
    <?php if($pars['city1']){?>
    var url	= '<?php echo $G_web_root;?>/ajax/getcity.php?city=<?php echo $pars['city'];?>&sel=<?php echo $pars['city1'];?>';
	$.get(url,function(data){
			$("#city_list").html(unescape(data));
	});

<?php }
    else{
        ?>
        var url	= '<?php echo $G_web_root;?>/ajax/getcity.php?city=<?php echo $pars['city'];?>&sel=0';
    	$.get(url,function(data){
    			$("#city_list").html(unescape(data));
    	});
        <?php 
    }
}else{
    ?>
    var url	= '<?php echo $G_web_root;?>/ajax/getcity.php?city=510000&not=y';
	$.get(url,function(data){
			$("#city").html(unescape(data));
	});
    var url	= '<?php echo $G_web_root;?>/ajax/getcity.php?city=510100&sel=0';
	$.get(url,function(data){
			$("#city_list").html(unescape(data));
	});
    <?php
}?>

function xglx(){
    if($("#xy").css('display')=='none'){
        $("#xy").css('display','block');
    }else{
        $("#xy").css('display','none');
    }
}
function xglxsave(){
    var st='';
    for(var i=0;i<5;i++){
        if($('#lx'+i).val()!=''){
            st+='&lx'+i+'='+$('#lx'+i).val();
        }
    }
    var url	= '<?php echo $G_web_root;?>/ajax/changecache.php?p=y'+st;//window.location.href=url;
	$.get(url,function(data){
		$("#type").html(data);//xy
        //alert('请重新载入页面查看修改情况');
	});
}
article_class_onchange('<?php echo @(int)$viewvar['cid'];?>');
</script>
<?php
require($abs_admin_cppath . '/footer.php');
?>